package com.roads.screen.controller;

import com.roads.common.core.controller.BaseController;
import com.roads.common.core.domain.AjaxResult;
import com.roads.project.domain.ProPeriod;
import com.roads.project.service.IProPeriodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 可视化大屏1数据Controller
 *
 * @author nhp
 * @date 2023-10-10
 */
@RestController
@RequestMapping("/screen/screen1/data")
public class Screen1DataController extends BaseController {

    @Autowired
    private IProPeriodService periodService;

    @GetMapping("/data2")
    public AjaxResult data2() {
        String loginUser = getUsername();
        List<ProPeriod> periodList = periodService.selectDistinctBidPeriodListByUser(loginUser);
        return success();
    }

}
